{extend name="admin@public/base_content" /}
{block name="body">}
<body>
{include file="admin@public/common" /}
<div class="container-fluid larry-wrapper">
    <div class="row">
        <div class="col-xs-12 col-sm-12 col-md-12">
            <section class="panel panel-padding">
                <form class="layui-form layui-form-pane">
                    <div class="layui-form-item">
                        <label class="layui-form-label">应用名称</label>
                        <div class="layui-input-block">
                            <input type="text" name="scope_name" value="{$info.scope_name}" jq-verify="required" jq-error=" 请输入应用名称" placeholder="请输入应用名称" class="layui-input ">
                        </div>
                    </div>

                    <div class="layui-form-item">
                        <label class="layui-form-label">应用图片</label>
                        <div class="layui-input-block">
                            <input type="file" name="image" class="layui-upload-file" id="upload_one">
                            <input type="hidden" name="scope_image" value="{$info.scope_image|default=''}" jq-error="请上传应用图片" error-id="img-error">
                            <p id="img-error" class="error"></p>
                        </div>
                        {notempty name="info.scope_image"}
                        <div class="layui-input-block">
                            <div class="imgbox"><img src="{$info.scope_image}" alt="..." class="img-thumbnail"></div>
                        </div>
                        {/notempty}
                    </div>

                    <div class="layui-form-item" pane>
                        <label class="layui-form-label">显示状态</label>
                        <div class="layui-input-inline">
                            <input type="radio" name="status" {eq name="info.status" value="1"}checked{/eq} title="正常" value="1" checked />
                            <input type="radio" name="status" {eq name="info.status" value="2"}checked{/eq} title="禁用" value="2" />
                        </div>
                    </div>

                    <div class="layui-form-item ">
                        <label class="layui-form-label">备注</label>
                        <div class="layui-input-block">
                            <textarea name="content" placeholder="请输入备注" class="layui-textarea">{$info.content|default=''}</textarea>
                        </div>
                    </div>

                    <div class="layui-input-block">
                        <input type="hidden" name="id" type="hidden" value="{$info.id}">
                        <button class="layui-btn" jq-submit lay-filter="submit" jq-tab="true">立即提交</button>
                        <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                    </div>
                </form>
            </section>
        </div>
    </div>
</div>
</body>
{/block}
{block name="script"}
<script>
    layui.use('myform');
</script>
{/block}